package cn.gok.test;

import cn.gok.entity.HeadTeacher;
import cn.gok.entity.MyJDBC;
import cn.gok.entity.Student;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
    测试自动装配
 */

public class SpringTest08 {
    public static void main(String[] args) throws InterruptedException {
        ApplicationContext app  = new ClassPathXmlApplicationContext("application05.xml");

        Student student1 = app.getBean("student2", Student.class);
        System.out.println(student1);

    }
}
